type
  sw = enum off, on
  swarr = array[off..on, string]

var s:swarr = ["hello", "world"]
echo s[off]
echo s[on]
